package com.xue566.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author: Wuzh
 * @Description: 部门实体类
 * @Data:
 */
@Data
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式
@TableName(value = "department_info")
public class DepartmentEntity extends BaseEntity {

    @TableId(value = "departmentId", type = IdType.INPUT)
    private String departmentId;
    @TableField(value = "departmentName")
    private String departmentName;
    @TableField(value = "departmentDesc")
    private String departmentDesc;
    @TableField(value = "createTime")
    private String createTime;
    @TableField(value = "isUsed")
    private int isUsed;

    public String getDepartmentId () {
        return departmentId;
    }

    public void setDepartmentId (String departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartmentName () {
        return departmentName;
    }

    public void setDepartmentName (String departmentName) {
        this.departmentName = departmentName;
    }

    public String getDepartmentDesc () {
        return departmentDesc;
    }

    public void setDepartmentDesc (String departmentDesc) {
        this.departmentDesc = departmentDesc;
    }

    public String getCreateTime () {
        return createTime;
    }

    public void setCreateTime (String createTime) {
        this.createTime = createTime;
    }

    public int getIsUsed () {
        return isUsed;
    }

    public void setIsUsed (int isUsed) {
        this.isUsed = isUsed;
    }
}
